﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/System_User.Master" Inherits="System.Web.Mvc.ViewPage<Carmall.Entity.UsersInfo>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	创建用户
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <div class="c_box">
			<ul class="c_o_a c">
				<li class="focus"><a href="#" title="用户基本信息">基本信息</a></li>
			</ul>
			<div class="c_m_e">
				<div class="c_p_b dotted">用户信息：</div>
				<table border="0" cellspacing="0" cellpadding="0" class="c_t_d">
					<tr>
						<th width="20%">用户名：</th>
						<td width="50%"><%= Html.TextBoxFor(model => model.Username, new { @class = "c_i_a_e" })%></td>
						<td width="30%"><%= Html.ValidationMessage("Username") %></td>
					</tr>
					<tr>
						<th>登录密码：</th>
						<td><%= Html.PasswordFor(model => model.Password, new { @class = "c_i_a_e" })%></td>
						<td><%= Html.ValidationMessage("Password")%></td>
					</tr>
					<tr>
						<th>姓名：</th>
						<td><%= Html.TextBoxFor(model => model.Name, new { @class = "c_i_a_e" })%></td>
						<td><%= Html.ValidationMessage("Name")%></td>
					</tr>
					<tr>
						<th>用户类型：</th>
						<td>
                            <%= Html.DropDownListFor(model => model.UserType, new List<SelectListItem>{ 
                            new SelectListItem {Selected = true, Text = "平台中心", Value = "1"}, 
                            new SelectListItem {Selected = false, Text = "汽配厂商", Value = "2"}, 
                            new SelectListItem {Selected = false, Text = "零售终端", Value = "3"} 
                            })
                            %>
                        </td>
						<td></td>
					</tr>
					<tr>
						<th>所属角色：</th>
						<td>****</td>
						<td></td>
					</tr>
					<tr>
						<th>联系电话：</th>
						<td><%= Html.TextBoxFor(model => model.Tel, new { @class = "c_i_a_e" })%></td>
						<td><%= Html.ValidationMessage("Tel")%></td>
					</tr>
					<tr>
						<th>联系地址：</th>
						<td><%= Html.TextBoxFor(model => model.Address, new { @class = "c_i_a_e" })%></td>
						<td><%= Html.ValidationMessage("Address")%></td>
					</tr>
					<tr>
						<th>备注信息：</th>
						<td><%= Html.TextAreaFor(model => model.Notes, new { @class = "c_i_a_e", rows = 10 })%></td>
						<td><%= Html.ValidationMessage("Notes")%></td>
					</tr>
					<tr>
						<th></th>
						<td>
							<div><input type="submit" value="确 认" class="btn_a_5" title="确认" /></div>
						</td>
					</tr>
				</table>
			</div>
		</div>
    <% } %>
</asp:Content>

